/*
 * @Author: ShiJunJie
 * @Date: 2022-04-08 10:07:38
 * @LastEditors: ShiJunJie
 * @LastEditTime: 2022-04-13 18:07:14
 * @Descripttion: 行为验证码接口
 */
import https from '@/utils/https'
// const api = 'https://api.oneidentity.dev.touchsite.cn' ?? import.meta.env.VITE_SLIDING_API
const api = '' ?? import.meta.env.VITE_SLIDING_API
/** 行为验证码 */
export default {
  /** 行为验证码初始化接口 */
  get: (id: any) => https.get(`${api}/common/v1/behavior/${id}`),
  /** 行为验证码验证接口处 */
  post: (data: any) => https.post(`${api}/common/v1/behavior/trail`, { data })
}
